﻿//======================================================================
//
//        Copyright (C) 2002-2008 S.Sams Lifexperience!
//        All rights reserved
//        FileName : CustomLabel
//        Description :
//        Created by Sam Shen at 2008/8/28 0:17:07
//        http://lab.travelive.com.cn/
//        E-Mail: S.Sams@msn.com
//
//======================================================================

using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace S.Sams.GoogleMap
{
    /// <summary>
    /// 自定义标注
    /// </summary>
    public class CustomLabel
    {
        private bool _isenabledcusstomlabel = false;
        /// <summary>
        /// 启用用户自定义标注点
        /// </summary>
        public bool isEnabledCusstomLabel
        {
            get { return _isenabledcusstomlabel; }
            set { _isenabledcusstomlabel = value; }
        }

        private bool _isonlyonepoint = true;
        /// <summary>
        /// 只允许标注一个点
        /// </summary>
        public bool isOnlyOnePoint
        {
            get { return _isonlyonepoint; }
            set { _isonlyonepoint = value; }
        }

        private bool _isclickshowmsg;
        /// <summary>
        /// 单击地图时是否显示提示信息, 则只有拖拽时才显示提示信息
        /// </summary>
        [DefaultValue(true)]
        public bool isClickShowMsg
        {
            get { return _isclickshowmsg; }
            set { _isclickshowmsg = value; }
        }

        /// <summary>
        /// 自定义标注点消息提示
        /// </summary>
        public string PointMsg
        {
            get;
            set;
        }

        /// <summary>
        /// 自定义CallBack的Javascript函数名 callback(x,y,z)
        /// 回传参数: X:纬度, Y:经度, ZoomIn:放大系数
        /// </summary>
        public string JavascriptFunction
        {
            get;
            set;
        }
    }
}
